package com.hzcc.hzccblog.module.controller;

import com.hzcc.hzccblog.common.Result;
import com.hzcc.hzccblog.common.enums.LoginEnums;
import com.hzcc.hzccblog.common.enums.PublicEnums;
import com.hzcc.hzccblog.module.entity.dto.UserLoginDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.subject.Subject;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 早睡蛋
 * @Date 2022/7/18 14:31:27
 * @Desc:
 */
@RestController
@RequestMapping("api/test")
@CrossOrigin
@Slf4j
@Api(tags = "测试控制层")
public class TestController {

    @ApiOperation("shiro登录测试")
    @PostMapping("/test1")
    public Result test1(){
        return PublicEnums.OK.getResult();
    }


}
